package com.manage.platform.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.manage.platform.entity.TaskTargetFileEntity;
import com.manage.platform.mapper.TaskTargetFileMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * YWD
 * 2025/10/13
 */
@AllArgsConstructor
@Service
public class TaskTargetFileServiceImpl extends ServiceImpl<TaskTargetFileMapper, TaskTargetFileEntity> {


    public Boolean removeByTaskTargetId(List<Long> list1) {
        LambdaQueryWrapper<TaskTargetFileEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(TaskTargetFileEntity::getTaskTargetId, list1);
        return this.remove(queryWrapper);
    }
}
